package com.itlong.cloud.operate.service;

import com.itlong.cloud.POJO.DTO.operate.OperateActivitiesGetPageDTO;
import com.itlong.cloud.POJO.DTO.operate.OperateActivitiesSaveDTO;
import com.itlong.cloud.POJO.VO.operate.OperateActivitiesGetPageVO;
import com.itlong.cloud.POJO.VO.operate.OperateAppHomePageGetPageVO;
import com.itlong.cloud.utils.page.Page;

import java.util.List;

/**
 * <desc>
 *      运营-app功能管理业务处理接口
 * </desc>
 *
 * @createDate
 */
public interface IOperateActivitiesService {

    /**
     * <desc>
     *      获取分页数据
     * </desc>
     *
     * @param dto 入参
     * @return page模型
     * @author Qiang.S
     * @createDate 2019/06/24
     */
    Page<OperateActivitiesGetPageVO> getActivitiesPage(OperateActivitiesGetPageDTO dto) throws Exception;
    /**
     * <desc>
     *      添加启动页
     * </desc>
     *
     * @param dto 功能实体
     * @return sql执行行数
     * @author Qiang.S
     * @createDate 2019/06/24
     */
    Integer save(OperateActivitiesSaveDTO dto) throws Exception;
    /**
     * <desc>
     *      更新功能
     * </desc>
     *
     * @param dto 功能实体
     * @return sql执行行数
     * @author Qiang.S
     * @createDate 2019/06/24
     */
    Integer update(OperateActivitiesSaveDTO dto) throws Exception;
    /**
     * <desc>
     *      通过id获取功能
     * </desc>
     *
     * @param activitiesId 活动编号
     * @return 资源实体
     * @author Qiang.S
     * @createDate 2019/06/24
     */
    OperateActivitiesGetPageVO getOne(String activitiesId);

    /**
     * <desc>
     *      删除功能
     * </desc>
     *
     * @param activitiesIds 活动编号,逗号分隔
     * @return sql执行行数
     * @author Qiang.S
     * @createDate 2019/06/24
     */
    Integer delete(String activitiesIds);

    /**
     * <desc>
     *      获取运营活动可用数据
     * </desc>
     *
     * @param projectId 项目编号
     * @return page模型
     * @author Qiang.S
     * @createDate 2019/06/24
     */
    List<OperateActivitiesGetPageVO> OperationalAdvertising(String projectId);
}
